IMap.Insert Method

Inserts or replaces an item in the map.

Syntax

public:
bool Insert(
         K key,
         V value
)  

Parameters

key
Type: K 

The key associated with the item to insert.

value
Type: V 

The item to insert.

Return value

Type: bool 

  True if an item with the specified key is an existing item that was replaced; otherwise, false.

Requirements

Namespace: Windows.Foundation.Collections

Metadata: windows.winmd

See also

Reference

IMap Generic Interface

IMap Members

Windows.Foundation.Collections Namespace